import Layout from '@/page/index/'
export default [{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [
    {
      path: 'index',
      name: '首页',
      meta: {
        i18n: 'dashboard'
      },
      component: () =>
        import(/* webpackChunkName: "views" */ '@/views/wel/index')
    }]
}, {
  path: '/form-detail',
  component: Layout,
  children: [{
    path: 'index',
    name: '详情页',
    meta: {
      i18n: 'detail'
    },
    component: () =>
      import(/* webpackChunkName: "views" */ '@/views/util/form-detail')
  }]
},
{
  path: '/redirect',
  component: Layout,
  hidden: true,
  children: [
    {
      path: '/redirect/:path(.*)',
      component: (resolve) => require(['@/views/redirect'], resolve)
    }
  ]
},
{
  path: '/404',
  component: (resolve) => require(['@/views/error/404'], resolve),
  hidden: true
},
{
  path: '/401',
  component: (resolve) => require(['@/views/error/401'], resolve),
  hidden: true
},
{
  path: '/user',
  component: Layout,
  hidden: true,
  redirect: 'noredirect',
  children: [
    {
      path: 'profile',
      component: (resolve) => require(['@/views/system/user/profile/index'], resolve),
      name: '个人中心',
      meta: { title: '个人中心', icon: 'user' }
    }
  ]
},
{
  path: '/dict',
  component: Layout,
  hidden: true,
  children: [
    {
      path: '/dictData/:type',
      component: (resolve) => require(['@/views/system/dictData'], resolve),
      name: '字典数据',
      meta: { title: '字典数据', icon: '' }
    }
  ]
},
{
  path: '/jobLog',
  component: Layout,
  hidden: true,
  children: [
    {
      path: '/jobLog',
      component: (resolve) => require(['@/views/monitor/jobLog'], resolve),
      name: '任务日志',
      meta: { title: '任务日志' }
    }
  ]
},
{
  path: '/editor',
  name:'editor',
  component: resolve => require(['@/views/ips/editor/index'], resolve)
},
{
  path: '/ticketEditor',
  name:'ticketEditor',
  component: resolve => require(['@/views/ips/ticketEditor/index'], resolve)
}]
